home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’97
/
Klingon BG App
/
Scripts
/
Klingon Change Freq.asc
< prev
next >
Wrap
Text File
|
1997-06-28
|
577b
|
24 lines
property myTalkInterval : 15
on ClockTalk()
AskForSpeakingInterval()
tell application "Klingon BG App"
«event KFRQKFRQ» myTalkInterval
end tell
end ClockTalk
on AskForSpeakingInterval()
-- How often do we speak
try
set x to display dialog "How often should I talk (minutes)?" default answer 15
set myTalkInterval to (text returned of x) as integer
if myTalkInterval is less than 1 then
display dialog "I have to speak at least once a minute!!"
set myTalkInterval to 1
end if
on error x
display dialog x
end try
end AskForSpeakingInterval
ClockTalk()